#set ($view = $context.getRequestParameter("view"))
#set ($viewpath = $context.getRequestParameter("viewpath"))
#set ($label = $context.getRequestParameter("label"))
#set ($id = $context.getRequestParameter("id"))
#set ($module = $context.findValue("module"))
#set ($viewid = $url_util.getPathUtilities().extractFileName($view) )
#set ($columns = $context.getRequestParameter("columns"))
#if ($columns)
$context.putPageValue("detailviewercolumns",$columns)
#end
#if(!$hitssessionid)
#set( $hitssessionid = $context.getRequestParameter("hitssessionid") )
#end
#if( !$catalogid )
#set( $catalogid = $mediaarchive.getCatalogId() )
#end
#if(!$searcher)
#set ( $searchtype = $context.getRequestParameter("searchtype") )
#if( $searchtype )
#set ( $searcher = $searcherManager.getSearcher($catalogid, $searchtype ) )
#else
#set ( $searcher = $mediaarchive.assetSearcher )
#end
#end
#set( $catalogid = $searcher.getCatalogId() )
#set( $searchtype = $searcher.getSearchType() )
#if(!$data)
#if( $asset )
#set( $data = $asset )
#else
#set ($data = $searcher.searchById($id))
#end
$context.putPageValue("data", $data)
#end
$context.putPageValue("searcher", $searcher)
$context.putPageValue("searchtype", $searchtype)
#set ( $openview = $context.getRequestParameter("openview") )
#set ( $edit = $context.getRequestParameter("edit") )
#set ( $editpath = $context.getRequestParameter("editpath"))
#if(!$editpath)
#set( $editpath = "$componenthome/detaileditor/genericsave.html" )
#end
#if($data.getId().startsWith("multiedit"))
#set($multiedit = true)
#end
#set( $viewdata = $searcher.getViewData($view) )
$context.getText($viewdata)